<?php if (!defined('THINK_PATH')) exit(); if($datalist[0][id] != '' ): ?><!-- list start -->
        <?php if(is_array($datalist)): $k = 0; $__LIST__ = $datalist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$result): $mod = ($k % 2 );++$k;?><li>
                <a href="<?php echo U('Home/Index/builddetail',array('id'=>$result[id]));?>">
                    <?php $_result=explode(',',$result['imgs']);if(is_array($_result)): $i = 0; $__LIST__ = array_slice($_result,0,1,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vx): $mod = ($i % 2 );++$i;?><img src="/Public/Uploads/img/<?php echo ($vx); ?>.png"><?php endforeach; endif; else: echo "" ;endif; ?>
                    <p class="list-title"><?php echo ($result[na]); ?></p>
                    <p class="list-info"><?php echo ($result[ds]); ?><span></span></p>
                    <p class="list-price"><?php echo ($result[cp]); ?>万 <s><?php echo ($result[newprice]); ?>万</s>
                    <?php if($result[cw] == 1 ): ?><span class="red">急售</span><?php endif; ?>
                    <?php if($result[cn] == 1 ): ?><span class="green">准新车</span><?php endif; ?>
                    <?php if($result[ct] == 1 ): ?><span class="orange">超值</span><?php endif; ?>
                    <?php if($result[cp] <= 5 ): ?><span class="orange">练手车</span><?php endif; ?>
                    </p>
                </a>
            </li><?php endforeach; endif; else: echo "" ;endif; ?>
    <!-- list end -->
<?php else: ?>
    <!-- no data start -->
    <div class="nodata clearfix">
        <img class="nodata-img" src="__IMG__/list-nodata.png">
        <div class="nodata-text-wrap">
            <p class="nodata-text1">更多最新车源请联系58链车。</p>
            <p class="nodata-text2">您可以直接联系<span class="header-phone-nodata">400-100-1313</span>，或者登记手机号，您将获取到最新车源。</p>
            <div class="nodata-phone">
                <p>联系电话</p>
                <input id="nodata-phone-input" type="text" placeholder="请输入您的联系方式">
                <button id="nodata-phone-btn">提交需求</button>
                <p id="nodata-phone-error"></p>
            </div>
        </div>
    </div><?php endif; ?>